﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AzureToss
{
    public interface ITossClient
    {
        string Subscribe(string nameSpace, string topic);
        string Subscribe(string topic);
        bool UnSubscribe(string pipeId);
        object Receive(string pipeId);
        bool Send(string topic, object item);
        T Receive<T>(string pipeId);
        bool Send<T>(string topic, T item);
    }
}
